package app.species;

import sim.engine.*;

public abstract class EntityCreator implements Steppable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8543454172345989121L;

	// spawn points
	protected SpawnPoint[] spawnPoints;

	// the time between adding new entities
	protected int spawnInterval;
	protected int timeSinceLastSpawn;

	public EntityCreator(int interval, SpawnPoint[] spoints){

		this.spawnInterval = interval;
		this.timeSinceLastSpawn = 0;

		this.spawnPoints = spoints;

	}

	public void step(SimState state){

		this.timeSinceLastSpawn++;

	}

}
